/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.DBConnect;
import DAO.GiuongDAO;
import DTO.GiuongDTO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

/**
 *
 * @author Tu Nguyen
 */
public class GiuongBUS {
     public static ResultSet TimGiuongTheoPhong(String phong, int tang)
    {
        return GiuongDAO.TimGiuongTheoPhong(phong, tang);
      
    }
       public static boolean UpdateTinhTrang(String magiuong, int tinhtrang)
    {
        return DAO.GiuongDAO.UpdateTinhTrang(magiuong, tinhtrang);
      
    }
      public static GiuongDTO Get(String magiuong, String maphong)
    {
        return GiuongDAO.Get(magiuong, maphong);
      
    }
}
